#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# @Project : chat_model 
# @File    : schema.py
# @IDE     : PyCharm 
# @Author  :ZH
# @Time    : 2025/1/10 14:15
from datetime import datetime

from pydantic import BaseModel
from typing import Optional, List


class EmbeddingServerListRequests(BaseModel):
    page: int = 1
    limit: int = 10
    name: Optional[str] = None


class EmbeddingServerListResponseBase(BaseModel):
    id: Optional[int] = None
    update_date: Optional[datetime] = None
    embedding_name: Optional[str] = None
    dimension: Optional[int] = None
    is_default: Optional[bool] = None
    description: Optional[str] = None


class EmbeddingServerListResponse(BaseModel):
    code: int
    message: str
    count: Optional[int]
    data: List[EmbeddingServerListResponseBase]
